package com.atguigu.mapper;

import com.atguigu.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program:weiblog-server
 * @author: 马雨清
 * @Time: 2023/8/19  16:29
 * @description:
 */

@Mapper
public interface CategoryMapper {
    /**
     * 查询所有文章分类
     * @return
     */
    List<Category> selectAllCategory();

    Integer insertCategory(@Param("category") Category category);


    List<Category> selectByPage(@Param("category") Category category);
}
